<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
        <title><?php echo (($title)?($title):"首页"); ?></title>
        <link href="__PUBLIC__/css/hangye.css" rel="stylesheet" type="text/css" />
        <link href="__PUBLIC__/css/person.css" rel="stylesheet" type="text/css" />
        <link href="__PUBLIC__/css/comm.css" rel="stylesheet" type="text/css" />
		<link href="__PUBLIC__/css/panel.css" rel="stylesheet" type="text/css" />
		<link href="__PUBLIC__/css/codetaste_person.css" rel="stylesheet" type="text/css" />
        <link href="__PUBLIC__/js/auto/jquery.autocomplete.css" rel="stylesheet" type="text/css" />
        <script type="text/javascript" src="__PUBLIC__/js/jquery.js"></script>
        <script type="text/javascript" src="__PUBLIC__/js/auto/jquery.autocomplete.js"></script>
        <script src="__PUBLIC__/js/ajaxupload.js" type="text/javascript"></script>
        <script src="__PUBLIC__/js/ajaxupload.js" type="text/javascript"></script>
        <script src="__PUBLIC__/js/kindeditor/kindeditor.js" charset="utf-8"></script>
		<script type="text/javascript" src="__PUBLIC__/js/wbox/wbox-min.js"></script>
		<link rel="stylesheet" type="text/css" href="__PUBLIC__/js/wbox/wbox-min.css" />
		<script type="text/javascript" src="__PUBLIC__/js/person_check.js"></script>
		
<script type="text/javascript">

$(document).ready(function(){

});
</script>
</head>
<body>




<style>/* talk list */
.imageshow{float:left;margin-left:20px;height:120px;}
.morecontent{height:100px;}
.media{height:95px;}
.media img {width:33px;height:33px;padding:5px 65px 80px 45px;cursor:pointer;}
.music img {cursor:pointer;}
.hpostimg img {cursor:url('zoomin.cur'), pointer;padding:3px;margin:4px 0 4px 0;overflow:hidden;margin-right:20px;border:1px #cccccc solid;}
.linkbg {margin-top:10px;padding:10px;border:1px solid #EBE6C9;background:#FCF9E6 none repeat scroll 0 0;font-size:12px;}
#viewbox {margin:10px;}
.photoimg {width:134px;margin:18px;float:left;text-align:center;border:1px #cccccc solid;padding:4px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;}
.photoimgimg {width:130px;border:1px #cccccc solid;}
.ubblink{font-size:12px;}
.adminico{padding:0 0 0 20px;background:url('ol1.gif') 0 3px no-repeat;float:right;}
.uonlineico{padding:0 0 0 20px;background:url('ol2.gif') 0 3px no-repeat;float:right;}
.uofflineico{padding:0 0 0 20px;background:url('ol0.gif') 0 3px no-repeat;float:right;color:#999999}

/* user & (_message) */
#info {background:#ffffff;padding:20px 0 20px 20px;-moz-border-radius-topleft:5px;-webkit-border-top-left-radius:5px 5px;border-top-left-radius:5px}
#infohead {background:url('sendbg.png') repeat-x bottom;border-bottom:1px solid #cccccc;padding:20px 20px 0 20px;height:180px;-moz-border-radius-topleft:5px;-webkit-border-top-left-radius:5px 5px;border-top-left-radius:5px}
#panel {float:left; margin:0 0 0 20px;width:390px}
.artZoomBox{display:none;}
</style>
<script type="text/javascript">
$(document).ready(function(){
	showImg();
});

</script>
<script type="text/javascript" src="__PUBLIC__/pickjs/lang.js"></script>
<script type="text/javascript" src="__PUBLIC__/pickjs/function.js"></script>
<script type="text/javascript" src="__PUBLIC__/pickjs/common.js"></script>

<script type="text/javascript">
		$(document).ready(function() {
			/*
			*   Examples - images
			*/

			$("a.artZoom").fancybox();
		});
</script>
	<script type="text/javascript" src="__PUBLIC__/js/fancybox/jquery.mousewheel-3.0.4.pack.js"></script>
	<script type="text/javascript" src="__PUBLIC__/js/fancybox/jquery.fancybox-1.3.4.pack.js"></script>
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/js/fancybox/jquery.fancybox-1.3.4.css" media="screen" />
	
        <link href="__PUBLIC__/css/index.css" rel="stylesheet" type="text/css" />
        <link href="__PUBLIC__/css/hangyelist.css" rel="stylesheet" type="text/css" />
        <div class="containner">
        
<script src="__PUBLIC__/js/comm.js" type="text/javascript"></script>
<script>

    
    function autologin(){
        $.ajax({
            type: "POST",
            url: "__APP__/Home/Index/doLogin",
            dataType: "json",
            data: "auto",
            success: function(data){
                //alert("Data Loaded: " + data);
                if(data != 0){
                    $('#loginform').html('尊敬的'+data.user_name+'欢迎回来!');
                        $('#loginform1').html('<a href="javascript:;" onclick="logout();"><span>退出</span></a>');
                }
                   
            }
        });
    }

    $(function(){
        bindRegedit('__PUBLIC__/htm/regedit.htm','__APP__/Home/Index/regedit');
        autologin();
        $('#loginBtn').click(function(){
            
            var username = $.trim($('#username').val());
            var password = $.trim($('#password').val());
            var verify = $.trim($('#verify').val());
            if(username.length<1){alert("请填写用户名");return false;}
            if(password.length<1){alert("请填写密码");return false;}
            if(password.verify<1){alert("请填写验证码");return false;}
            $.ajax({
                type: "POST",
                url: "__APP__/Home/Index/doLogin",
                dataType: "json",
                data:   "username="+username+"&password="+password,
                success: function(data){
                    //alert("Data Loaded: " + data);
                    if(data == 0){
                        alert('登陆失败，请重试！');
                    }else if(data == 2){
                    	alert('登陆失败，你的邮箱还未被激活，请激活后再试！');
                    }
                    else{
                    	$('#loginform').html('尊敬的'+data.user_name+'欢迎回来!');
                        $('#loginform1').html('<a href="javascript:;" onclick="logout();"><span>退出</span></a>');
                    }
                }
            });
        });
    });
    function logout(){
        $.get("__APP__/Home/Index/logOut", {},function(){window.location.reload();})
    	$("#login_p").show();
		$("#lio").hide();
	}
</script>
<div id="regeditDiv" style="position:absolute;top:0px;margin:auto;z-index:299"></div>
<div id="header"> 
    <!--上半部分-->
    <div class="header_top">
        <div class="top_menu">
            <ul>
                <li id="loginform">用户名：<input id="username" type="text" size="15" style="height: 12px; width: 80px;"  >&nbsp;
                    密码：<input id="password" size="15" type="password" style="height: 12px; width: 80px;" />
                </li>
                <li class="cart" id="loginform1"><a href="javascript:;" id="loginBtn" ><span>登录</span></a></li>
                <li class="point"><a href="javascript:;" id="regeditBtn"><span>注册</span></a></li>
                <!--<li id="date" class="date">2009年10月6</li>日-->
                <!--<li id="week" class="week">星期</li>二-->
                <!--<li id="time" class="time">8：31</li>-->
                <!--<li id="time_pic" class="time_pic"></li>-->
                <!--农历-->
                <!--<li id="chinese_date" class="chinese_date">四月初六</li>-->
                <!--<span class="solar_terms">小满</span>-->
                <li class="ropmenu_r"></li>
            </ul>
        </div>
        <div class="logo"><a href="#"><img src="__PUBLIC__/images/logo.gif" /></a></div>
        <div class="clear"></div>
    </div>
    <!--end 上半部分--> 
    <!--导航及下半部分-->
    <div class="header_main">
        <div class="menu"> 
            <!--导航-->
            <ul class="menu_list1">
                <li class="menu_list1_r">
                    <ul>
                        <ul>
                            <li class="menu_select"><a href="/">首页</a></li>
                            <li><a href="/Industry/index/id/1">个人用品</a></li>
                            <li><a href="/Industry/index/id/2">办公器材</a></li>
                            <li><a href="/Industry/index/id/3">家居生活</a></li>
                            <li><a href="/Industry/index/id/4">家电数码</a></li>
                            <li><a href="/Industry/index/id/5">汽车天地</a></li>
                            <li><a href="/BaseBrand/">品牌印象</a></li>
                            <li><a href="/User/my/">个人页面</a></li>
                        </ul>
                    </ul>
                </li>
            </ul>
            <!--end 导航--> 
            <!--热门搜索-->
            <!--<?php if($memo != ''): ?><ul class="menu_list2">            
	                <?php echo ($memo); ?>
	            </ul><?php endif; ?>--> 
            
            <!--end 热门搜索--> 
            <!--search-->
            <div class="search" style="width:450px; margin:0px 0px 0px 50px; padding:8px; background:none; color:#fff;">
            <span><?php echo ($industry_explain); ?></span>
            </div>
            <div class="search">
                <div class="search_th">
                    <form action="__APP__/Share/shareList/" name="form1" method="post">
                        <input type="text" name="query" value="<?php echo ($query); ?>" class="text" onclick="this.value='';"/>
                        <button class="" type="submit" onclick="document.form1.submit();">搜 索</button>
                    </form>
                </div>
            </div>
            <!--end search--> 
            <!--快捷按钮-->
            <!-- ul class="menu_list3">
					<li>游客您好，获得更好用户体验请注册或登录！</li>
					<li class="cart"><a href="#"><span>登录</span></a></li>
					<li class="point"><a href="#"><span>注册</span></a></li>
				</ul -->
            <!--end 快捷按钮-->
            <div class="clear"></div>
        </div>
        <div class="header_bottom"><div class="menu"></div></div>
    </div>
    <!--end 导航及下半部分--> 
</div>

        <!--导航结束-->
        <div class="body-center">

		    <div class="w_tithead"> <strong>您当前的位置是： </strong>
		      <a href="__APP__">品购网首页</a>
		      <a href="__APP__/Industry/index/id/<?php echo ($list[0][industry_id]); ?>"><?php echo (getIndustry($list[0][industry_id])); ?></a>
		                分享列表
		    </div>
            <!-- 图片展示 begin-->

			<script type="text/javascript" src="__PUBLIC__/js/jcarousel/lib/jquery.jcarousel.pack.js"></script>
			<link rel="stylesheet" type="text/css" href="__PUBLIC__/js/jcarousel/lib/jquery.jcarousel.css" />
			<link rel="stylesheet" type="text/css" href="__PUBLIC__/js/jcarousel/skins/tango/skin.css" />


			<script type="text/javascript">

			$(document).ready(function() {
			    $('#mycarousel').jcarousel({
			    	scroll: 6,
			    	visible: 6
			    });
			});
			</script>

			<div id="wrap">
			  <ul id="mycarousel" class="jcarousel-skin-tango">
			    <?php if(is_array($attachments)): $i = 0; $__LIST__ = $attachments;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$val): ++$i;$mod = ($i % 2 )?><li class="show_attachment" onclick="showImg(<?php echo ($val["id"]); ?>)"　><img style="cursor:pointer;" src="__PUBLIC__/Uploads/<?php echo ($val["file"]); ?>" width="120" height="75"/></li><?php endforeach; endif; else: echo "" ;endif; ?>
			    <input type="hidden" id="show_attachment_id" name="show_attachment_id" value="" />
			  </ul>
			</div><!-- 图片展示end -->

            <div class="hangye_list">
               <div class="countmessage" style="margin-right:20px;"><a href="javascript:void(0)" id="showAddAttachment">快速发表图片>></a></div>
            </div>
            <div id="ranking_all">
                <?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$share): ++$i;$mod = ($i % 2 )?><div class="ranking_content">
                        <div class="avatar_div">
                            <img src="<?php echo (($share["user"]["user_photo"])?($share["user"]["user_photo"]):'__ROOT__/Public/images/user_photo.jpg'); ?>" width="50" height="50"/>
                        </div>
                        <div class="text">
                            <div class="title">
                                <span class="name"><a href="/Share/show?id=<?php echo ($share["id"]); ?>"><?php echo (strip_tags(html_entity_decode($share["caption"]))); ?></a></span>

                                <span class="people">发布者：<?php echo ($share["user"]["user_name"]); ?></span>
                                <span class="people">发布时间：<?php echo (date("Y-m-d",$share["time_add"])); ?></span>
                            </div>
                            <div class="message">
				浏览：<span class="yellow"><?php echo ($share["count_view"]); ?></span>次   评分：<span class="yellow"><?php echo (intval($share["score"])); ?></span> 采纳<span class="yellow"><?php echo ($share["count_fav"]); ?></span>次
                            </div>
                            <div class="content">
                                <a href="/Share/show?id=<?php echo ($share["id"]); ?>"><?php echo (strip_tags(html_entity_decode($share["content"]))); ?></a>
                                <br/>
                                <?php echo ($share["share_video"]); ?>
                            </div>
                        </div>
                    </div><?php endforeach; endif; else: echo "" ;endif; ?>
                <div id="mysharePage" class="paging">
                   <?php echo ($page); ?>
                </div>
            </div>
        </div>

<script type="text/javascript">
//弹出框
function showImg(id){
	var wBox = $(".show_attachment").wBox({
	    title : "图片展示",
		requestType: "iframe",
		target:"__URL__/showImg/id/"+id
	});
}

var wBox = $("#showAddAttachment").wBox({
    title : '快速新增图片',
	requestType: "iframe",
	iframeWH:{width:400,height:260},
	target:"__URL__/add_attachment/id/<?php echo ($_GET['commodity_id']); ?>"
});
$(document).ready(function(){
	$('.morelink').click();
	$(".miniImg").live('click',function(){
        $(this).hide();
        $(this).parent().find('.artZoomBox').show();
    });
    $('.maxImgLink').live('click',function(){
        $(this).parent().parent().find('.miniImg').show();
        $(this).parent().hide();
    });
});
</script>


     
     <!--页尾开始-->
      <div class="pagefoot1">
          <span><a href="http://www.360pick.com/about360pick.html">关于品购</a></span>
          <span><a href="http://www.360pick.com/mianzeshengming.html">免责声明</a></span>
          <span><a href="http://www.360pick.com/linkother.html">友情链接</a></span>
          <span><a href="http://www.360pick.com/map.html">网站地图</a></li></span>
          <span><a href="http://www.360pick.com/yijianfankui.html">意见反馈</a></span>
          <span><a href="http://www.360pick.com/contactus.html">联系我们</a></span>
      
          <div class="pagefoot2">
              品购<a>360pick.com</a>版权所有 <a href="http://www.miibeian.gov.cn">津ICP备10200350号</a>
			<script src="http://s17.cnzz.com/stat.php?id=2454650&web_id=2454650"                          language="JavaScript">
            </script>
          </div>
      </div>
      <!--页尾结束-->
     <!--页尾部分-->
    </div>
    </body>
</html>